$('#search').click(function () {
    //表单序列化
    var search= $('.search').serialize();
    var admin_name1=$('#admin_name').val();
    var log_timemin1=$('#log_timemin').val();
    var log_timemax1=$('#log_timemax').val();
    if(admin_name1=="" || log_timemin1=="" ||log_timemax1=="") {
        alert("请输入搜索值");
    }else {
        $.ajax({
            'type':'POST',
            'url':'/log/log',
            'dataType':'json',
            'async': false,
            'data':search,

            success: function (msg) {
                alert("Data Saved:111 " + msg);
            },

            error: function (msg) {
                alert("Data Saved:222 " + msg);
            },
        });
    }
})
